<?php
$cerez = @$_COOKIE["kullanici"];
if ($cerez == "") {
    ?>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script type="text/javascript">
        alert("Bu alanı görmeye yetkiniz yok");
        window.location="../giris.php";
    </script>
    <?php
} else {
    ?>
    <!DOCTYPE html>
    <html>
        <head>
            <title>Admin Paneli</title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <link href="stylesheets/adminstyle.css" rel="stylesheet" type="text/css" />
        </head>
        <body>
            <div id="ust2">
                <a href="index.php">Anasayfaya geri dön</a>
            </div>
            <div id="form">
                <h1><center> Admin Paneli </center> </h1><br />
                <div id="bolumler">
                    <li>
                        <a href="hakkimizda.php" class="hakkimizda">Hakkımızda</a>
                    </li>
                    <li>
                        <a href="duyuruekle.php" class="duyuru">Duyuru Ekle</a>
                    </li>
                    <li>
                        <a href="referans.php" class="referans">Referanslar</a>
                    </li>
                    <li>
                        <a href="iletisim.php" class="iletisim">İletişim</a>
                    </li>
                    <li>
                        <a href="urunler.php" class="urunler">Ürünler</a>
                    </li>
                    <li>
                        <a href="uyelistesi.php" class="kullanici">Kullanıcılar</a>
                    </li>
                    <li>
                        <a href="cikis.php" class="cikis">Çıkış</a>
                    </li>
                    <div class="domestos"></div>
                </div>
                <div class="haberlistesi">
                </div>
            </div>
        </body>
    </html>
<?php } ?>